package application

import (
	"vueAdmin/application/controller"
	"vueAdmin/application/middleware"
)

func init() {
	Server.NoRoute(controller.NoRouter)
	Server.NoMethod(controller.NoMethod)
	Server.POST("/user/login", controller.Login)

	//api 验证token
	var Authorized = Server.Group("/api", middleware.CheckToken())

	// 获取菜单
	Authorized.POST("/getMenu", controller.GetMenu)

	// 获取用户列表
	Authorized.GET("/getUserList", controller.GetUserList)
}
